home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / fractal / kaos.lha / symbollib / xcross.c < prev   
Encoding:
C/C++ Source or Header  |  1989-11-18  |  541 b   |  21 lines

  1. /*
  2. ### draw an "X" symbol ###
  3. */
  4.  
  5. #include <suntool/sunview.h>
  6.  
  7. xcross(pw,xp,yp,s,color,p_type)
  8. Pixwin *pw;
  9. int xp,yp,s,color,p_type;
  10. {
  11.  
  12.         if(p_type==0){
  13.                 pw_vector(pw,xp-s,yp-s,xp+s,yp+s,PIX_SRC | PIX_COLOR(color),1);
  14.                 pw_vector(pw,xp-s,yp+s,xp+s,yp-s,PIX_SRC | PIX_COLOR(color),1);
  15.         }
  16.         else {
  17.                 pw_vector(pw,xp-s,yp-s,xp+s,yp+s,(PIX_SRC ^ PIX_DST) | PIX_COLOR(color),1);
  18.                 pw_vector(pw,xp-s,yp+s,xp+s,yp-s,(PIX_SRC ^ PIX_DST) | PIX_COLOR(color),1);
  19.         }
  20. }
  21.